package postgres

import (
	"gitee.com/mkwchecking/sr-core/storage/database/driver"
	"gorm.io/driver/postgres"
	"gorm.io/gorm"
)

func init() {
	driver.Register(driver.Postgres, New)
}

func New(cfg driver.Conn) gorm.Dialector {
	return postgres.Open(cfg.GetDSN())
}
